home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / Libraries / tcl7.4b3 / doc / concat.n < prev    next >
Encoding:
Text File  |  1994-12-17  |  1008 b   |  45 lines

  1. '\"
  2. '\" Copyright (c) 1993 The Regents of the University of California.
  3. '\" Copyright (c) 1994 Sun Microsystems, Inc.
  4. '\"
  5. '\" See the file "license.terms" for information on usage and redistribution
  6. '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  7. '\" 
  8. '\" @(#) concat.n 1.3 94/12/17 16:17:44
  9. '\" 
  10. .so man.macros
  11. .HS concat tcl
  12. .BS
  13. '\" Note:  do not modify the .SH NAME line immediately below!
  14. .SH NAME
  15. concat \- Join lists together
  16. .SH SYNOPSIS
  17. .VS
  18. \fBconcat\fI \fR?\fIarg arg ...\fR?
  19. .VE
  20. .BE
  21.  
  22. .SH DESCRIPTION
  23. .PP
  24. This command treats each argument as a list and concatenates them
  25. into a single list.
  26. It also eliminates leading and trailing spaces in the \fIarg\fR's
  27. and adds a single separator space between \fIarg\fR's.
  28. It permits any number of arguments.  For example,
  29. the command
  30. .DS
  31. \fBconcat a b {c d e} {f {g h}}\fR
  32. .DE
  33. will return
  34. .DS
  35. \fBa b c d e f {g h}\fR
  36. .DE
  37. as its result.
  38. .PP
  39. .VS
  40. If no \fIarg\fRs are supplied, the result is an empty string.
  41. .VE
  42.  
  43. .SH KEYWORDS
  44. concatenate, join, lists
  45.